import 'package:flutter/material.dart';

class Exam_10 extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("线性布局Row"),
      ),
      body: Content(),
    );
  }

}

class Content extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Row(
      textDirection: TextDirection.ltr,//水平防线子组件得布局顺序
      mainAxisSize: MainAxisSize.max, //主轴水平方向占用得空间，默认是MainAxisSize.max
      mainAxisAlignment: MainAxisAlignment.start,//表示子组件在Row所占用的水平空间内对齐方式，此处沿textDirection得初始方向对齐，textDirection是mainAxisAlignment的参考系
      verticalDirection: VerticalDirection.down,//表示纵轴垂直得对齐方向，默认是down,表示从上到下
      crossAxisAlignment: CrossAxisAlignment.start,//表示子组件再纵轴方向得对齐方式
      children: <Widget>[
        Text("hello jack"),
        Text("hello jerry")
      ],
    );
  }

}